package com.bjpowernode.enums;

/**
 * @description:
 * @author: panDeng_Zhu
 * @time: 2022/10/24 19:51
 */

public enum Code {

    SUCCESS(10000, "请求成功"),
    FAILURE(20000, "请求失败"),
    PARAMETER_NULL(10001, "请求参数没有值"),
    PRODUCT_NOT_EXISTS(10002, "没有此投资产品"),
    SMS_CODE_INVALID(10003, "短信验证码无效"),
    PHONE_OR_PASSWORD_INVALID(10004, "登录信息无效"),
    REQUIRED_REALNAME(10005, "请先进行实名认证"),
    NOT_RESTRY_REALNAME(10006, "无需重复实名认证"),
    THROW_EXCEPTION(10007, "请求异常"),
    NUMBERFORMAT_EXCEPTION(10008, "请求中的数据不是数字"),
    NULLPOINTER_EXCEPTION(10009, "请求数据不符合要求"),

    TOKEN_INVLID(40000, "请求无效"); //token不可用


    private int code;
    private String text;

    Code(int code, String text) {
        this.code = code;
        this.text = text;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
